﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NENAData.Factory;
using NENAData.LINQ;

namespace NENAData.DLC
{
    public class NENAProvinces
    {

        private static MembershipDataContext GetMembershipDB()
        {
            var x = new SQLMembership();
            return x.GetMembershipDB();
        }
        public List<Province> GetProvinces_All()
        {

            MembershipDataContext db = GetMembershipDB();
            var listProvinces = (from t1 in db.Provinces
                                 select t1);

            return listProvinces.ToList();
        }
    }
}
